package com.ccc.influxdb.pojo;

import com.ccc.influxdb.util.MyDateUtil;
import com.influxdb.annotations.Column;

import java.time.Instant;

/**
 * @author superC
 * @version 2.0.0
 * @date 2023/3/9
 */

public class BaseQueryData {

    @Column
    String field;

    @Column
    String value;

    @Column(timestamp = true)
    Instant time;

    public String getField() {
        return field;
    }

    public String getValue() {
        return value;
    }

    public String getTime() {
        return MyDateUtil.instantToString(time);
    }

}